package xjvm_v1.classfile.cons;

/**
 * Created by xuefengDong: moveb
 * On 2020/7/5- 23:46
 */
public enum ConsItemTagEnum {
    Utf8(1, "CONSTANT_Utf8"),
    CInteger(3, "CONSTANT_Integer"),
    CFloat(4, "CONSTANT_Float"),
    CLong(5, "CONSTANT_Long"),
    CDouble(6, "CONSTANT_Double"),
    CClass(7, "CONSTANT_Class"),
    CString(8, "CONSTANT_String"),
    Fieldref(9, "CONSTANT_Fieldref"),
    Methodref(10, "CONSTANT_Methodref"),
    InterfaceMethodref(11, "CONSTANT_InterfaceMethodref"),
    NameAndType(12, "CONSTANT_NameAndType"),
    MethodHandle(15, "CONSTANT_MethodHandle"),
    MethodType(16, "CONSTANT_MethodType"),
    InvokeDynamic(18, "CONSTANT_InvokeDynamic");
    int idx;
    String desc;
    ConsItemTagEnum(int idx, String d){
        this.idx = idx;
        this.desc = d;
    }

    public int getIdx() {
        return idx;
    }

    public String getDesc() {
        return desc;
    }
}
